package o;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import androidx.annotation.ColorRes;
import androidx.annotation.DrawableRes;
import com.huawei.appgallery.foundation.ui.framework.widget.button.DownloadButton;
import o.ewm.c;

public class eho extends SkinAttr {
    private int ʼ;
    private int ॱॱ;
    private int ᐝ;

    public eho(@ColorRes int i, @DrawableRes int i2, @ColorRes int i3) {
        this.attrValueRefName = "DownloadButtonAttr";
        this.ॱॱ = i;
        this.ʼ = i2;
        this.ᐝ = i3;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof DownloadButton) {
            int ॱ;
            DownloadButton downloadButton = (DownloadButton) view;
            Context context = view.getContext();
            int ॱ2 = evf.ॱ(context, this.ॱॱ);
            Drawable ˋ = evf.ˋ(context, this.ʼ);
            if (this.ᐝ != c.ˉ) {
                ॱ = cgr.ॱ(evf.ॱ(context, this.ᐝ), 0.6f);
            } else {
                ॱ = 0;
            }
            downloadButton.setButtonStyle(new dke(context, ॱ2, -16777216, ˋ, false, ॱ));
            downloadButton.setIsImmersion(true);
            downloadButton.ॱ();
        }
    }

    public void ॱ(View view) {
        evf.ˎ(view, this);
    }
}
